﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aribaccio.Device;

namespace BDPAutodetect.Device
{
    /// <summary>
    /// 设备类型数据
    /// </summary>
    public class DeviceTypeData
    {        
        /// <summary>
        /// 设备类型
        /// </summary>
        public DeviceType DeviceType { get; set; }
        /// <summary>
        /// 设备类型名称
        /// </summary>
        public string DeviceTypeName { get; set; }
        /// <summary>
        /// 设备类型描述
        /// </summary>
        public string DeviceTypeCaption { get; set; }

        /// <summary>
        /// 默认构造函数
        /// </summary>
        public DeviceTypeData()
        {
            this.DeviceType = DeviceType.None;
            this.DeviceTypeName = "";
            this.DeviceTypeCaption = "";
        }
        /// <summary>
        /// 带参构造函数
        /// </summary>
        /// <param name="argDeviceType">设备类型</param>
        /// <param name="argDeviceTypeName">设备类型名称</param>
        /// <param name="argDeviceTypeCaption">设备类型描述</param>
        public DeviceTypeData(DeviceType argDeviceType, string argDeviceTypeName, string argDeviceTypeCaption)
        {
            this.DeviceType = argDeviceType;
            this.DeviceTypeName = argDeviceTypeName;
            this.DeviceTypeCaption = argDeviceTypeCaption;
        }
        /// <summary>
        /// 重写[ToString]方法
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return this.DeviceTypeCaption;
        }
    }
}
